package cn.online.dao;

import java.util.List;

import cn.online.model.Admin;

public class AdminDao extends GenericDao<Admin,Integer> {
	
	public Admin get(String username,String password){
		List adminL=getHibernateTemplate().find("from Admin as a where a.aname=? and a.apassword=?",new Object[]{username,password});
		if(adminL.size()!=0)
			return (Admin)adminL.get(0);
		return null;
	}
}
